<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%>
<!DOCTYPE html>
<html>
<head>
	<%@ include file="/static/admin/jsp/include.jsp"%>

	<script type="text/javascript">
        var grid;
        var index;

        $(function() {
            grid = $('#grid').datagrid({
                url : sy.contextPath + '/userWannaBuy/list',
                singleSelect : false,
                columns : [ [{
                    width : $(this).width() * 0.2,
                    title : '作品id',
                    field : 'goodsId',
                    align : 'center',
                },{
                    width : $(this).width() * 0.2,
                    title : '作品名称',
                    field : 'goodsName',
                    align : 'center',
				},{
                    width : $(this).width() * 0.2,
                    title : '用户id',
                    field : 'userId',
                    align : 'center',
                },{
                    width : $(this).width() * 0.2,
                    title : '用户账号',
                    field : 'userPhone',
                    align : 'center',
				},{
                    width : $(this).width() * 0.2,
                    title : '时间',
                    field : 'createTime',
                    align : 'center',
				}
                ] ]
            });


            $('#type').combobox({
                onSelect: function(rec){
                    grid.datagrid('load',sy.serializeObject($('#searchForm')));
                }
            });
        });

	</script>
</head>
<body>
<div id="toolbar">
	<form id="searchForm">
		<%--<div>
			<input type="text" class="easyui-textbox" name="goodsName" style="width: 150px" prompt="作品名称"/>
			是否出售 ： <select id="goodsState" class="easyui-combobox" name="goodsState" style="width:150px;" data-options="required:true,editable:false">
			<option value="">请选择</option>
			<option value="4">未出售</option>
			<option value="5">已售</option>
		</select>
			<a href="javascript:void(0);" class="easyui-linkbutton" data-options="iconCls:'fa-search'" onclick="grid.datagrid('load',sy.serializeObject($('#searchForm')));">过滤</a>
			<a href="javascript:void(0);" class="easyui-linkbutton" data-options="iconCls:'fa-search-minus'" onclick="$('#searchForm input').val('');grid.datagrid('load',{});">重置过滤</a>
			<a href="javascript:void(0);" onclick="exportExcel();" class="button button-red" title="导出excel">导出excel</a>
		</div>--%>
	</form>
	<div class="tbbutton">

		<%--<a href="javascript:void(0);" class="easyui-linkbutton" data-options="iconCls:'fa-plus-circle',plain:true" onclick="addFun();">添加</a>
		<a href="javascript:void(0);" class="easyui-linkbutton" data-options="iconCls:'fa-pencil',plain:true" onclick="editFun();">修改</a>
		<a href="javascript:void(0);" class="easyui-linkbutton" data-options="iconCls:'fa-cloud-upload',plain:true" onclick="upLoadList();">批量上链</a>--%>

		<%--<a href="javascript:void(0);" class="easyui-linkbutton" data-options="iconCls:'fa-trash',plain:true" onclick="delFun();">删除</a>--%>

	</div>
</div>
<table id="grid" data-options="fit:true,border:false"></table>
</body>
</html>